<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Bibliotheque:  Fichier source de BdLivre.h</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.5.5 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="classes.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;Rechercher&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
    </ul>
  </div>
<h1>BdLivre.h</h1><a href="BdLivre_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/***************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> *   Copyright (C) 2008 by beltegeuse   *</span>
<a name="l00003"></a>00003 <span class="comment"> *   beltegeuse@kubuntu-acer   *</span>
<a name="l00004"></a>00004 <span class="comment"> *                                                                         *</span>
<a name="l00005"></a>00005 <span class="comment"> *   This program is free software; you can redistribute it and/or modify  *</span>
<a name="l00006"></a>00006 <span class="comment"> *   it under the terms of the GNU General Public License as published by  *</span>
<a name="l00007"></a>00007 <span class="comment"> *   the Free Software Foundation; either version 2 of the License, or     *</span>
<a name="l00008"></a>00008 <span class="comment"> *   (at your option) any later version.                                   *</span>
<a name="l00009"></a>00009 <span class="comment"> *                                                                         *</span>
<a name="l00010"></a>00010 <span class="comment"> *   This program is distributed in the hope that it will be useful,       *</span>
<a name="l00011"></a>00011 <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *</span>
<a name="l00012"></a>00012 <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *</span>
<a name="l00013"></a>00013 <span class="comment"> *   GNU General Public License for more details.                          *</span>
<a name="l00014"></a>00014 <span class="comment"> *                                                                         *</span>
<a name="l00015"></a>00015 <span class="comment"> *   You should have received a copy of the GNU General Public License     *</span>
<a name="l00016"></a>00016 <span class="comment"> *   along with this program; if not, write to the                         *</span>
<a name="l00017"></a>00017 <span class="comment"> *   Free Software Foundation, Inc.,                                       *</span>
<a name="l00018"></a>00018 <span class="comment"> *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *</span>
<a name="l00019"></a>00019 <span class="comment"> ***************************************************************************/</span>
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef BDLIVRE_H</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define BDLIVRE_H</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00023"></a>00023 <span class="comment">//Include QT</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;QtCore/QList&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;QtCore/QObject&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;QtCore/QDate&gt;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="comment">//Includes internal typedef</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include "<a class="code" href="BdTypeDef_8h.html">BdTypeDef.h</a>"</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include "<a class="code" href="BdEditeur_8h.html">BdEditeur.h</a>"</span>
<a name="l00031"></a>00031 <span class="keyword">class </span>QString;
<a name="l00032"></a>00032 <span class="keyword">class </span><a class="code" href="classBdAuteur.html" title="class pour representer un auteur">BdAuteur</a>;
<a name="l00033"></a>00033 <span class="comment">//class BdEditeur;</span>
<a name="l00038"></a><a class="code" href="classBdLivre.html">00038</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="classBdLivre.html" title="Class pour representer les livres.">BdLivre</a>
<a name="l00039"></a>00039 {
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 <span class="keyword">public</span>:
<a name="l00042"></a>00042   <span class="comment">//Constructors</span>
<a name="l00046"></a>00046 <span class="comment"></span>  <a class="code" href="classBdLivre.html#0489fb6d00e565cdc906c9bc128f2985" title="Constructeur pour creer un livre.">BdLivre</a>();
<a name="l00047"></a>00047   
<a name="l00056"></a>00056   <a class="code" href="classBdLivre.html#0489fb6d00e565cdc906c9bc128f2985" title="Constructeur pour creer un livre.">BdLivre</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, QString nom, QDate date, <a class="code" href="BdTypeDef_8h.html#c65774937349d3ee22dbf86c2340e63a">BdAuteurMap</a> <a class="code" href="classBdLivre.html#0b143ac46e7b708eecc4700e81b0d236">auteurs</a>, <a class="code" href="classBdEditeur.html" title="Class qui represente un editeur.">BdEditeur</a> <a class="code" href="classBdLivre.html#4470dedcfb3519bef49eecd48c4252fe">editeur</a>);
<a name="l00057"></a>00057   <span class="comment">//Destructors</span>
<a name="l00061"></a>00061 <span class="comment"></span>  <a class="code" href="classBdLivre.html#7976c82916b52881c152ecdac5b72d56" title="Destructeur.">~BdLivre</a>();
<a name="l00062"></a>00062   
<a name="l00063"></a>00063   <span class="comment">//Asseceurs</span>
<a name="l00064"></a>00064 
<a name="l00065"></a>00065   <span class="comment">// * Titre</span>
<a name="l00069"></a>00069 <span class="comment"></span>  QString <a class="code" href="classBdLivre.html#68883fb8e9c88a54e9f70ccbcf412b24">titre</a>();
<a name="l00070"></a>00070   
<a name="l00075"></a>00075   <span class="keywordtype">void</span> <a class="code" href="classBdLivre.html#2b648281dcab1a653e057e2e0051276e" title="Pour changer le titre du livre.">setTitre</a>(QString titre);
<a name="l00076"></a>00076 
<a name="l00077"></a>00077   <span class="comment">// * Auteurs</span>
<a name="l00082"></a>00082 <span class="comment"></span>  <span class="keywordtype">void</span> <a class="code" href="classBdLivre.html#17a8108c4a022cbabe46c421939db565" title="Pour ajouter un auteur au livre.">addAuteur</a>(<a class="code" href="classBdAuteur.html" title="class pour representer un auteur">BdAuteur</a>* auteur);
<a name="l00083"></a>00083   
<a name="l00088"></a>00088   <span class="keywordtype">void</span> <a class="code" href="classBdLivre.html#b3346dce4046016de045d923446f2a5b" title="Pour supprimer un auteur au livre.">removeAuteur</a>(<a class="code" href="classBdAuteur.html" title="class pour representer un auteur">BdAuteur</a>* auteur);
<a name="l00089"></a>00089   
<a name="l00093"></a>00093   <span class="keyword">const</span> <a class="code" href="BdTypeDef_8h.html#c65774937349d3ee22dbf86c2340e63a">BdAuteurMap</a>&amp; <a class="code" href="classBdLivre.html#0b143ac46e7b708eecc4700e81b0d236">auteurs</a>();
<a name="l00094"></a>00094 
<a name="l00095"></a>00095   <span class="comment">// * Editeur</span>
<a name="l00099"></a>00099 <span class="comment"></span>  <span class="keyword">const</span> <a class="code" href="classBdEditeur.html" title="Class qui represente un editeur.">BdEditeur</a>&amp; <a class="code" href="classBdLivre.html#4470dedcfb3519bef49eecd48c4252fe">editeur</a>();
<a name="l00100"></a>00100   
<a name="l00105"></a>00105   <span class="keywordtype">void</span> <a class="code" href="classBdLivre.html#de2f0ced80e6f21caa7f1f0e9f977bc3" title="Pour changer l&amp;#39;editeur du livre.">setEditeur</a>(<a class="code" href="classBdEditeur.html" title="Class qui represente un editeur.">BdEditeur</a> editeur);
<a name="l00106"></a>00106 
<a name="l00107"></a>00107   <span class="comment">// * Id</span>
<a name="l00111"></a>00111 <span class="comment"></span>  <span class="keywordtype">int</span> <a class="code" href="classBdLivre.html#eb4ab50ad3d3de1218902b1697d8401b">id</a>();
<a name="l00112"></a>00112   
<a name="l00117"></a>00117   <span class="keywordtype">void</span> <a class="code" href="classBdLivre.html#c23fa82506ff725cd06f60b9f00d3496" title="Pour changer l&amp;#39;id du livre.">setLivreId</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>);
<a name="l00118"></a>00118 
<a name="l00119"></a>00119 <span class="keyword">private</span>:
<a name="l00123"></a><a class="code" href="classBdLivre.html#23fe016c3df92c27c742877f13ede2d4">00123</a>   <span class="keywordtype">int</span> <a class="code" href="classBdLivre.html#23fe016c3df92c27c742877f13ede2d4" title="id du livre">mId</a>;
<a name="l00124"></a>00124   
<a name="l00128"></a><a class="code" href="classBdLivre.html#b589c970c3c09c2d4761dffe69043e43">00128</a>   QString <a class="code" href="classBdLivre.html#b589c970c3c09c2d4761dffe69043e43" title="titre du livre">mTitre</a>;
<a name="l00129"></a>00129   
<a name="l00133"></a><a class="code" href="classBdLivre.html#386e5d53d9db8bf73a6b0ef6d0804d5b">00133</a>   QDate <a class="code" href="classBdLivre.html#386e5d53d9db8bf73a6b0ef6d0804d5b" title="date de parution du livre">mDate</a>;
<a name="l00134"></a>00134   
<a name="l00138"></a><a class="code" href="classBdLivre.html#6636b9e9a885684ae11b920516573b90">00138</a>   <a class="code" href="classBdEditeur.html" title="Class qui represente un editeur.">BdEditeur</a> <a class="code" href="classBdLivre.html#6636b9e9a885684ae11b920516573b90" title="editeur du livre">mEditeur</a>;
<a name="l00139"></a>00139   
<a name="l00143"></a><a class="code" href="classBdLivre.html#6b39343641769bd17f4fef0d6169d02a">00143</a>   <a class="code" href="BdTypeDef_8h.html#c65774937349d3ee22dbf86c2340e63a">BdAuteurMap</a> <a class="code" href="classBdLivre.html#6b39343641769bd17f4fef0d6169d02a" title="auteurs du livre">mAuteurs</a>;
<a name="l00144"></a>00144 };
<a name="l00145"></a>00145 
<a name="l00146"></a>00146 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Généré le Thu Jul 3 00:22:20 2008 pour Bibliotheque par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
</body>
</html>
